import http from "@/api";
import { PERMISSION_PORT } from "@/api/config/servicePort";
import { Permission } from "@/api/interface";

export const getPermissionListApi = () => {
  return http.get<Permission.ResPermission[]>(PERMISSION_PORT + `/list`, {}, { loading: false });
  // 如果想让菜单变为本地数据，注释上一行代码，并引入本地 authMenuList.json 数据
  // return authMenuList;
};
